-- GENERATED SPELL FOR [Blackrock Gladiator] --


function spell0_4464(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(32064,pUnit)
pUnit:RegisterEvent('Sorts_4464', 588, 1)
end

function spell1_4464(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_4464', 552, 1)
end

function spell2_4464(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4464', 5276, 1)
end

function spell3_4464(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_4464', 15000, 1)
end

function Sorts_4464(pUnit, Event)
local choix_sorts_4464 = math.random(0, 3)
if choix_sorts_4464 == 0 then
pUnit:RegisterEvent('spell0_4464', 1, 1)
end
if choix_sorts_4464 == 1 then
pUnit:RegisterEvent('spell1_4464', 1, 1)
end
if choix_sorts_4464 == 2 then
pUnit:RegisterEvent('spell2_4464', 1, 1)
end
if choix_sorts_4464 == 3 then
pUnit:RegisterEvent('spell3_4464', 1, 1)
end
end

function mob4464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4464', math.random(1500, 3000), 1)
end

function mob4464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4464, 1, 'mob4464_Action')
RegisterUnitEvent(4464, 2, 'mob4464_Leave')
RegisterUnitEvent(4464, 3, 'mob4464_Kill')
RegisterUnitEvent(4464, 4, 'mob4464_Die')
